package com.ctim.service.config;


import org.springframework.transaction.annotation.Propagation;
import org.springframework.transaction.annotation.Transactional;

import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * User: lb on 2016/11/17.
 * Date:2016-11-17-11:09
 * desc： data_analysis  事物
 */

@Target({ ElementType.TYPE, ElementType.METHOD })
@Retention(RetentionPolicy.RUNTIME)
@Transactional(value="transactionManager", propagation= Propagation.REQUIRED, rollbackFor=Exception.class)
public @interface TransactionalControl {
}
